package com.senlingspace.web.controller.pad;

import com.senlingspace.common.core.controller.BaseController;
import com.senlingspace.common.core.page.TableDataInfo;
import com.senlingspace.system.domain.vo.SlkjTeamEqumentVo;
import com.senlingspace.system.service.ISlkjTeamEqumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 设备组队关联pad Controller
 * 
 * @author SenlingSpace
 * @date 2024-08-21
 */
@RestController
@RequestMapping("/pad/equment")
public class TeamEquPadController extends BaseController
{
    @Autowired
    private ISlkjTeamEqumentService slkjTeamEqumentService;


    /**
     * 查询门店组队列表(当天数据）
     */
    @GetMapping("/shopId/{shopId}")
    public TableDataInfo getAggregatedTeamEquments(@PathVariable Long shopId) {
        List<SlkjTeamEqumentVo> result = slkjTeamEqumentService.getAggregatedTeamEqumentsByShopId(shopId);
        return getDataTable(result);
    }


}
